/*    */ package dm.sql;
/*    */ 
/*    */ import dm.jdbc.dbaccess.Const;
/*    */ import dm.jdbc.dbaccess.DBError;
/*    */ import dm.jdbc.driver.DmdbConnection_bs;
/*    */ import dm.jdbc.innerData.DmdbConnAgent;
/*    */ import java.io.Serializable;
/*    */ import java.sql.SQLException;
/*    */ import java.util.ResourceBundle;
/*    */ 
/*    */ 
/*    */ public class ArrayDescriptor
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/* 16 */   TypeDescriptor m_typeDesc = null;
/*    */   
/*    */   public ArrayDescriptor(String fulName, DmdbConnAgent connAgent) throws SQLException
/*    */   {
/* 20 */     if ((fulName == null) || (fulName.equalsIgnoreCase(""))) {
/* 21 */       DBError.throwSQLException(6036);
/*    */     }
/* 23 */     if ((connAgent == null) || (connAgent.getRealConn().isClosed())) {
/* 24 */       throw new SQLException(
/* 25 */         Const.res.getString("error.connectionClosedOrNotBuild"));
/*    */     }
/* 27 */     this.m_typeDesc = new TypeDescriptor(fulName, connAgent.getRealConn());
/*    */     
/* 29 */     this.m_typeDesc.parseDescByName();
/*    */   }
/*    */   
/*    */   public ArrayDescriptor(TypeDescriptor desc) {
/* 33 */     this.m_typeDesc = desc;
/*    */   }
/*    */   
/*    */   public TypeDescriptor getMDesc() {
/* 37 */     return this.m_typeDesc;
/*    */   }
/*    */   
/*    */   public TypeDescriptor getItemDesc() {
/* 41 */     return this.m_typeDesc.m_arrObj;
/*    */   }
/*    */   
/*    */   public int getLength() {
/* 45 */     return this.m_typeDesc.m_length;
/*    */   }
/*    */   
/*    */   public void setMTypeDesc(TypeDescriptor typeDesc) {
/* 49 */     this.m_typeDesc = typeDesc;
/*    */   }
/*    */   
/*    */   public static ArrayDescriptor createDescriptor(String fulName, DmdbConnAgent connAgent) throws SQLException
/*    */   {
/* 54 */     return new ArrayDescriptor(fulName, connAgent);
/*    */   }
/*    */ }


/* Location:              D:\Program Files\DBMS_20150813\jdbc\Dm7JdbcDriver17.jar!\dm\sql\ArrayDescriptor.class
 * Java compiler version: 2 (46.0)
 * JD-Core Version:       0.7.1
 */